﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="OrderListViewer.aspx.cs" Inherits="LotteryVote.OrderListViewer" %>

<%@ Register Src="~/Controls/OrderSearchBar.ascx" TagPrefix="LV" TagName="OrderSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Style/Order.css" rel="stylesheet" type="text/css" />
    <link href="Style/TableBaseStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
    <LV:OrderSearch ID="lv_orderSearch" runat="server" />
    <asp:Repeater ID="rpt_orderList" runat="server">
        <HeaderTemplate>
            <table cellpadding="0" cellspacing="0" style="width: 100%;">
                <thead>
                    <tr>
                        <td>
                            <%=GetGlobalResourceObject("Resource","No") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","OrderNo") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Time") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Num") %>
                        </td>
                        <td colspan="2">
                            <%=GetGlobalResourceObject("Resource","GameType") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Company") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Amount") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Odds") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Net") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Turnover") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","Commission") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","NetAmount") %>
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("Resource","WinLost") %>
                        </td>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Container.ItemIndex+1 %>
                </td>
                <td>
                    <%#Eval("OrderId") %>
                </td>
                <td>
                    <%#Eval("CreateTime") %>
                </td>
                <td>
                    <%#Eval("Num") %>
                </td>
                <td>
                    <%# FindGamePlayWay(Eval("GamePlayWayId")).GameType.GameName%>
                </td>
                <td>
                    <%# ParseToPlayWay(Eval("GamePlayWayId"))%>
                </td>
                <td>
                    <%# FindCompany(Eval("CompanyId")).Name%>
                </td>
                <td>
                    <%#Eval("Amount") %>
                </td>
                <td>
                    <%#Eval("Odds") %>
                </td>
                <td <%#Convert.ToInt32(Eval("DropWater"))>0?"style='color:red'":string.Empty%>>
                    <%#Eval("Net") %>
                </td>
                <td>
                    <%#Eval("Turnover") %>
                </td>
                <td>
                    <%#Eval("Commission") %>
                </td>
                <td>
                    <%#Eval("NetAmount") %>
                </td>
                <td <%#Convert.ToInt32(Eval("DrawResult"))<0?"style='color:red'":string.Empty%>>
                    <%#Eval("DrawResult")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table></FooterTemplate>
    </asp:Repeater>
</asp:Content>
